home *** CD-ROM | disk | FTP | other *** search
- global gSoundLevel
-
- on mouseDown
- set soundLevel to gSoundLevel
- if the mouseH > SpriteRight(29) then
- set Direction to 1
- else
- set Direction to 2
- end if
- repeat while the mouseDown
- set X to the mouseH
- if (X > SpriteRight(29)) and (Direction = 1) then
- set soundLevel to soundLevel + 1
- if soundLevel > 7 then
- set soundLevel to 7
- end if
- else
- if (X < SpriteLeft(29)) and (Direction = 2) then
- set soundLevel to soundLevel - 1
- if soundLevel < 0 then
- set soundLevel to 0
- end if
- end if
- end if
- set gSoundLevel to soundLevel
- setSound()
- updateStage()
- end repeat
- beep()
- end
-